package newfeature.jdk8;

/**
 * Created by dl
 */
public class InterfaceStaticMethod {

	public static void main(String[] args) {
		System.out.println("0.5*0.5 = "+MyUtils.square(0.5));
	}

	interface MyUtils {
		static double square(double x) {	// it's public by default
			return x*x;
		}
	}
}

